<?php

//addcslashes(string $string, string $characters): string
//addcslashes -给特殊字符增加反斜杠
//@$string 转义字符
//@$characters 转义范围

echo addcslashes('foo[ ]', 'A..z'), PHP_EOL; //输出\f\o\o\[ \]0
echo addcslashes('0 a b f n r t 和 v', 'A..z'), PHP_EOL; //输出\a\b\f\n\r\t 和 \v
//echo addcslashes("zoo['.']",'z..A');//输出 PHP Warning:  addcslashes(): Invalid '..'-range, '..'-range needs to be incrementing in
echo addcslashes("0Azoo['.']", 'A..z'), PHP_EOL; //输出 A\z\o\o\['.'\]
echo addcslashes('0Azoo[\'.\']', '0..z'), PHP_EOL; //输出 \0\A\z\o\o\['.'\]
